package com.ys.erp.entity.data.bean;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @author lwj
 * @date 2023/4/8
 */
    
@Data
@TableName(value = "t_employee")
@Accessors(chain = true)
public class Employee {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 店铺id
     */
    @TableField(value = "shop_id")
    private Long shopId;

    @TableField(value = "dingding_user_id")
    private String dingdingUserId;

    /**
     * 店铺code
     */
    @TableField(value = "shop_code")
    private String shopCode;

    @TableField(value = "pic")
    private String pic;

    /**
     * 角色id
     */
    @TableField(value = "role_id")
    private Long roleId;

    /**
     * 名字
     */
    @TableField(value = "real_name")
    private String realName;

    /**
     * 手机号
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 密码
     */
    @TableField(value = "password")
    private String password;

    @TableField(value = "is_disable")
    private Integer isDisable;

    @TableField(value = "status_describe")
    private String statusDescribe;

    @TableField(value = "parent_id")
    private Long parentId;

    @TableField(value = "bank_account")
    private String bankAccount;

    @TableField(value = "bank_name")
    private String bankName;

    @TableField(value = "tenant_id")
    private Integer tenantId;

    @TableField(value = "tenant_two_id")
    private Integer tenantTwoId;

    @TableField(value = "version")
    @Version
    private Integer version;

    @TableField(value = "create_time")
    private LocalDateTime createTime;

    @TableField(value = "update_time", update = "now()")
    private LocalDateTime updateTime;
}